//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.DictTerminalDto;
//import java.io.Serializable;
//import com.rt.schedulebase.service.IDictTerminalService;
//import com.rt.schedulebase.entity.DictTerminal;
//import com.rt.schedulebase.mapper.DictTerminalMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class DictTerminalServiceImpl extends ServiceImpl<DictTerminalMapper, DictTerminal> implements IDictTerminalService
//{
//@Override
//    public boolean insertSelective(final DictTerminal dictTerminal) {
//        return this.retBool(Integer.valueOf(((DictTerminalMapper)this.baseMapper).insert(dictTerminal)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((DictTerminalMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final DictTerminal dictTerminal) {
//        return this.retBool(Integer.valueOf(((DictTerminalMapper)this.baseMapper).updateById(dictTerminal)));
//    }
//
//@Override
//    public DictTerminal selectByPrimaryKey(final String key) {
//        return (DictTerminal)((DictTerminalMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<DictTerminal> getList(final DictTerminalDto dto) {
//        final QueryWrapper<DictTerminal> qw = (QueryWrapper<DictTerminal>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("HOSPITAL_CODE", dto.getHospitalCode());
//        map.put("DEPT_CODE", dto.getDeptCode());
//        map.put("TERMINAL_TYPE", dto.getTerminalType());
//        qw.allEq((Map)map, false);
//        final List<DictTerminal> list = (List<DictTerminal>)((DictTerminalMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<DictTerminal> getListAll() {
//        return (List<DictTerminal>)((DictTerminalMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final DictTerminal dictTerminal) {
//        final UpdateWrapper<DictTerminal> uw = (UpdateWrapper<DictTerminal>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("TERMINAL_CODE", dictTerminal.getTerminalCode());
//        map.put("TERMINAL_NAME", dictTerminal.getTerminalName());
//        map.put("TERMINAL_TYPE", dictTerminal.getTerminalType());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictTerminalMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final DictTerminal dictTerminal) {
//        final UpdateWrapper<DictTerminal> uw = (UpdateWrapper<DictTerminal>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("TERMINAL_CODE", dictTerminal.getTerminalCode());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictTerminalMapper)this.baseMapper).update(dictTerminal, (Wrapper)uw)));
//    }
//
//@Override
//    public DictTerminal getInfo(final DictTerminalDto dto) {
//        final QueryWrapper<DictTerminal> qw = (QueryWrapper<DictTerminal>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("TERMINAL_CODE", dto.getTerminalCode());
//        qw.allEq((Map)map, false);
//        return (DictTerminal)((DictTerminalMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
